import java.util.StringTokenizer;

class P408_39643 {

    public static void main(String[] args) {
    	
    	String line = readLn();
    	while (line != null) {
    		StringTokenizer st = new StringTokenizer(line);
    		int STEP = Integer.parseInt(st.nextToken());
    		int MOD = Integer.parseInt(st.nextToken());
    		process(STEP, MOD);
    		line = readLn();
    		
    		System.out.println();
    	}
    	
    }

    private static void process( int step, int mod ) {
    	boolean[] b = new boolean[100001];
    	int counter = 0;
    	int previowsStep = 0;
    	do {
    		counter++;
    		b[previowsStep] = true;	
    		previowsStep = (previowsStep + step) % mod;
    	} while (!b[previowsStep]);
    	
    	System.out.print(format(step) + format(mod));
    	
    	if (counter == mod) 
    		System.out.println("    Good Choice");
    	else System.out.println("    Bad Choice");
    		
    	
		
	}

	private static String format( int i ) {
		String st = Integer.toString(i);
		
		for (int k = st.length(); k < 10; k++)
			st = " " + st;
		
		return st;
	}

	static String readLn() {
        String newLine = System.getProperty("line.separator");
        StringBuffer buffer = new StringBuffer();
        int car = -1;
        try {
            car = System.in.read();
            while ((car > 0) && (car != newLine.charAt(0))) {
                buffer.append((char)car);
                car = System.in.read();
            }
            if (car == newLine.charAt(0))
            System.in.skip(newLine.length() - 1);
        } catch (java.io.IOException e) { return (null);}
        if ((car < 0) && (buffer.length() == 0)) return (null);
        return (buffer.toString()).trim();
    }

}